#include <QApplication>
#include <QDir>
#include <QtGui>
#include "myDialog.h"

int main(int argc, char *argv[])
{
	//设置编码，防止汉字出现乱码
	QTextCodec::setCodecForCStrings(QTextCodec::codecForName("utf-8"));
	QTextCodec::setCodecForTr(QTextCodec::codecForName("utf-8"));
	QApplication app(argc, argv);
	
	QDir *dir = new QDir("/");
	QStringList strList = dir->entryList();
	foreach(QString str, strList)
		qDebug()<<str;


	myDialog m;
	m.show();

	return app.exec();
}
